import {
    $get,
    $post
} from '@/http'
export default {
    // 登录
    login(params) {
        return $post('/api/basics/login', params)
    },
    // 退出登录
    logout(params) {
        return $get('/api/basics/logout', params)
    },
    // 单点登录得到token
    loginByKey(params) {
        return $get('/api/basics/loginByKey', params)
    },
    // 用户协议
    getUserAgree() {
        return $get('/api/json/userAgree.json')
    },
    // 校验用户是否是已注册
    checkUserByName(params) {
        return $get('/api/basics/register/checkUserByName', params)
    },
    // 注册
    register(params) {
        return $post('/api/basics/register/register', params)
    },
    // 发送身份验证码
    sendSMSCheckCode(params) {
        return $get('/api/basics/register/sendSMSCheckCode', params)
    }
}